import request from '@/utils/request'

// 获取banner
export function getBannerAPI(distributionSite = 1) {
  return request.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export function fineNewAPI() {
  return request.get('/home/new')
}

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export function fineHotAPI() {
  return request.get('/home/hot')
}

/**
 * @description：获取所有商品模块
 * @param {*}
 * @return {*}
 */
export function getGoodsAPI() {
  return request.get('/home/goods')
}
